import request from '@/utils/request'

// 查询id-11  -23  治疗药物检测列表
export function listTdmZhiLiaoYaoWu(query) {
  return request({
    url: '/tdmdata/TdmZhiLiaoYaoWu/list',
    method: 'get',
    params: query
  })
}

// 查询id-11  -23  治疗药物检测详细
export function getTdmZhiLiaoYaoWu(id) {
  return request({
    url: '/tdmdata/TdmZhiLiaoYaoWu/' + id,
    method: 'get'
  })
}

// 新增id-11  -23  治疗药物检测
export function addTdmZhiLiaoYaoWu(data) {
  return request({
    url: '/tdmdata/TdmZhiLiaoYaoWu',
    method: 'post',
    data: data
  })
}

// 修改id-11  -23  治疗药物检测
export function updateTdmZhiLiaoYaoWu(data) {
  return request({
    url: '/tdmdata/TdmZhiLiaoYaoWu',
    method: 'put',
    data: data
  })
}

// 删除id-11  -23  治疗药物检测
export function delTdmZhiLiaoYaoWu(id) {
  return request({
    url: '/tdmdata/TdmZhiLiaoYaoWu/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
